{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e3.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 09:40:44
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "symbols students.dta"
{txt}
{com}. 
. drop if rep == 1
{txt}(132 observations deleted)

{com}. 
. set seed  358395
{txt}
{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{res}{txt}(1 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-475.53905}  
Iteration 1:{space 3}log likelihood = {res:-475.53905}  

Structural equation model{col 49}Number of obs{col 67}= {res}       267
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-475.53905

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .2690763{col 26}{space 2} .0607102{col 37}{space 1}    4.43{col 46}{space 3}0.000{col 54}{space 4} .1500864{col 67}{space 3} .3880661
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0681447{col 26}{space 2} .0378549{col 37}{space 1}    1.80{col 46}{space 3}0.072{col 54}{space 4}-.0060495{col 67}{space 3} .1423389
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2575083{col 26}{space 2} .0400823{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} .1789484{col 67}{space 3} .3360682
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3693056{col 26}{space 2} .0323942{col 37}{space 1}   11.40{col 46}{space 3}0.000{col 54}{space 4} .3058141{col 67}{space 3} .4327972
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2393005{col 26}{space 2} .0352375{col 37}{space 1}    6.79{col 46}{space 3}0.000{col 54}{space 4} .1702362{col 67}{space 3} .3083648
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3225353{col 26}{space 2} .0352554{col 37}{space 1}    9.15{col 46}{space 3}0.000{col 54}{space 4}  .253436{col 67}{space 3} .3916347
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .2048375{col 26}{space 2}  .030153{col 37}{space 1}    6.79{col 46}{space 3}0.000{col 54}{space 4} .1457386{col 67}{space 3} .2639364
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0811556{col 26}{space 2} .0070239{col 54}{space 4} .0684933{col 67}{space 3} .0961587
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0824677{col 26}{space 2} .0071375{col 54}{space 4} .0696007{col 67}{space 3} .0977134
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       267{col 27}        .{col 38} -475.539{col 49}     9{col 58} 969.0781{col 69} 1001.363
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .2690763{col 26}{space 2} .0607102{col 37}{space 1}    4.43{col 46}{space 3}0.000{col 54}{space 4} .1500864{col 67}{space 3} .3880661
{txt}{space 11}t {c |}{col 14}{res}{space 2} .0681447{col 26}{space 2} .0378549{col 37}{space 1}    1.80{col 46}{space 3}0.072{col 54}{space 4}-.0060495{col 67}{space 3} .1423389
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2575083{col 26}{space 2} .0400823{col 37}{space 1}    6.42{col 46}{space 3}0.000{col 54}{space 4} .1789484{col 67}{space 3} .3360682
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2393005{col 26}{space 2} .0352375{col 37}{space 1}    6.79{col 46}{space 3}0.000{col 54}{space 4} .1702362{col 67}{space 3} .3083648
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3225353{col 26}{space 2} .0352554{col 37}{space 1}    9.15{col 46}{space 3}0.000{col 54}{space 4}  .253436{col 67}{space 3} .3916347
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0643901{col 26}{space 2} .0173483{col 37}{space 1}    3.71{col 46}{space 3}0.000{col 54}{space 4} .0303881{col 67}{space 3} .0983921
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .0867866{col 26}{space 2} .0217581{col 37}{space 1}    3.99{col 46}{space 3}0.000{col 54}{space 4} .0441415{col 67}{space 3} .1294317
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .2690763{col 26}{space 2} .0607102{col 37}{space 1}    4.43{col 46}{space 3}0.000{col 54}{space 4} .1500864{col 67}{space 3} .3880661
{txt}{space 11}t {c |}{col 14}{res}{space 2} .1325348{col 26}{space 2} .0362192{col 37}{space 1}    3.66{col 46}{space 3}0.000{col 54}{space 4} .0615465{col 67}{space 3} .2035231
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3442949{col 26}{space 2} .0362376{col 37}{space 1}    9.50{col 46}{space 3}0.000{col 54}{space 4} .2732706{col 67}{space 3} .4153192
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2} .2393005{col 26}{space 2} .0352375{col 37}{space 1}    6.79{col 46}{space 3}0.000{col 54}{space 4} .1702362{col 67}{space 3} .3083648
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3225353{col 26}{space 2} .0352554{col 37}{space 1}    9.15{col 46}{space 3}0.000{col 54}{space 4}  .253436{col 67}{space 3} .3916347
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl)  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       267
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0867866{col 26}{space 2} .0243565{col 37}{space 1}    3.56{col 46}{space 3}0.000{col 54}{space 4} .0390488{col 67}{space 3} .1345244
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .3442949{col 26}{space 2} .0366315{col 37}{space 1}    9.40{col 46}{space 3}0.000{col 54}{space 4} .2724985{col 67}{space 3} .4160913
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       267
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2}  .0867866{col 27}{space 2}-.0004153{col 38}{space 2} .02435646{col 51}{space 2} .0400982{col 63}{space 1} .1354998{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0468082{col 63}{space 1}  .142103{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .34429492{col 27}{space 2}-.0009697{col 38}{space 2} .03663149{col 51}{space 2} .2694736{col 63}{space 1} .4115668{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .2660417{col 63}{space 1} .4103877{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )   
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       267
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0643901{col 26}{space 2} .0181242{col 37}{space 1}    3.55{col 46}{space 3}0.000{col 54}{space 4} .0288673{col 67}{space 3} .0999128
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .1325348{col 26}{space 2} .0360955{col 37}{space 1}    3.67{col 46}{space 3}0.000{col 54}{space 4}  .061789{col 67}{space 3} .2032806
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       267
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .06439008{col 27}{space 2}-.0007814{col 38}{space 2} .01812418{col 51}{space 2} .0304942{col 63}{space 1} .1010971{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0332806{col 63}{space 1} .1039828{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .13253482{col 27}{space 2} .0000718{col 38}{space 2} .03609547{col 51}{space 2} .0579482{col 63}{space 1} .1993036{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0582231{col 63}{space 1} .1993301{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       259
                                                {txt}F(3, 255)         =  {res}     1.19
                                                {txt}Prob > F          = {res}    0.3132
                                                {txt}R-squared         = {res}    0.0137
                                                {txt}Root MSE          =    {res} .49982

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2}-.0336392{col 26}{space 2}  .062813{col 37}{space 1}   -0.54{col 46}{space 3}0.593{col 54}{space 4}-.1573374{col 67}{space 3}  .090059
{txt}{space 4}interest {c |}{col 14}{res}{space 2}-.1418979{col 26}{space 2}  .101609{col 37}{space 1}   -1.40{col 46}{space 3}0.164{col 54}{space 4}-.3419974{col 67}{space 3} .0582017
{txt}{space 4}ideology {c |}{col 14}{res}{space 2} .1877946{col 26}{space 2} .1282592{col 37}{space 1}    1.46{col 46}{space 3}0.144{col 54}{space 4}-.0647875{col 67}{space 3} .4403767
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5029951{col 26}{space 2} .0823618{col 37}{space 1}    6.11{col 46}{space 3}0.000{col 54}{space 4} .3407991{col 67}{space 3}  .665191
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e3.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 09:42:43
{txt}{.-}
{smcl}
{txt}{sf}{ul off}